package com.dragonsen.baseplugin.asm

import org.objectweb.asm.Opcodes
import org.objectweb.asm.tree.AbstractInsnNode

/**
* 功能描述  字节码方法的拓展
* @date: 2022/2/18 16:01
*/
fun AbstractInsnNode.methodEnd(): Boolean {
    return ((this.opcode >= Opcodes.IRETURN && this.opcode <= Opcodes.RETURN) || this.opcode == Opcodes.ATHROW)
}

